#include <bits/stdc++.h>
using namespace std;
int m;
int main(void){
    scanf("%d",&m);
    printf("%d\n",int(ceil(log2(m))));
    return 0;
}